using System;
using System.Xml.Schema;
using System.Xml.Serialization;
using flickr.api.communication;

namespace flickr.api
{
    [Serializable]
    public class PoolInfo : FlickrObject
    {
        public PoolInfo():base(){}
        public PoolInfo(FlickrConnection connection) : base(connection){}
        
        [XmlAttribute("id", Form=XmlSchemaForm.Unqualified)]
        public string gid;
    
        [XmlAttribute("nsid", Form=XmlSchemaForm.Unqualified)]
        public string gid2;
    
        public string GroupId
        {
            get { return (gid==null?gid2:gid); }
        }

        [XmlAttribute("name", Form=XmlSchemaForm.Unqualified)]
        public string GroupName;

        [XmlAttribute("admin", Form=XmlSchemaForm.Unqualified)]
        public int IsAdmin;
	
        [XmlAttribute("privacy", Form=XmlSchemaForm.Unqualified)]
        public PoolPrivacy Privacy;
	
        [XmlAttribute("eighteenplus", Form=XmlSchemaForm.Unqualified)]
        public int EighteenPlus;
	
        [XmlAttribute("photos", Form=XmlSchemaForm.Unqualified)]
        public long PhotoCount;
    }
}